<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <#--freemareker注释，不会显示哦！-->
    <title>${titile!"无标题"}</title>
</head>
<body>
<#if postList??>
    <table border="bold">
        <thead>
        <tr>
            <td>文章id</td>
            <td>文章名</td>
            <td>查看内容</td>
        </tr>
        </thead>
        <#list postList as post >
            <tr>
                <td>${post.id}</td>
                <td>${post.title}</td>
                <td><a href="post?pid=${post.id}">点击查看</a></td>
            </tr>
        </#list>
    </table>
</#if>
<form action="post_list">
    第<input type="text" name="pageNum" value="${pageNum!'1'}">页面
    <input type="hidden" name="cid" value="${cid}">
    <input type="submit" VALUE="查看">
</form>
</body>
</html>